package com.example.paopao.consumer.memer.dao.persist.repository.impl;

import com.example.paopao.consumer.memer.dao.persist.mapper.UserAlterMapper;
import com.example.paopao.consumer.memer.dao.persist.repository.UserAlterRepository;
import com.example.paopao.consumer.memer.pojo.entity.User;
import com.example.paopao.consumer.memer.pojo.vo.UserAlterInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
public class UserAlterRepositoryImpl implements UserAlterRepository {

    @Autowired
    private UserAlterMapper mapper;

    @Value("${paopao.encode.password}")
    private String encodePassword;

    @Override
    public int userAlterInfo(User user) {
        return mapper.updateUserInfo(user);
    }

    @Override
    public UserAlterInfoVo getUserInfoCase(int id) {
        return mapper.getUserInfoCase(id);
    }
}
